/** 派件业务管理 */
import { base_url } from '../request.config';

const logisCenterApi = {
    basic_logis_list: 'thanos/basic/logis/list', // 查询物流中心列表

    auth_checkPerm: 'thanos/auth/checkPerm', // 查询操作权限
    express_list: 'thanos/basic/express/list', // 查询快递公司列表
    garden_list: 'thanos/basic/garden/list', // 查询校园小区列表
    shelf_list: 'thanos/basic/shelf/list', // 查询货架地堆列表
    cabinet_list: 'thanos/basic/cabinet/list', // 查询柜体列表
    order_list: 'thanos/order/list', // 查询快递列表

    unmanned_list: 'thanos/unmannedVehicle/order/query', // 查询无人车快递列表
    unmanned_detail: 'thanos/unmannedVehicle/order/detail', // 查询无人车快递详情
    school_list: 'thanos/unmannedVehicle/school/nameList', // 查询无人车开通学校列表
    unmanned_cancel: 'thanos/unmannedVehicle/order/cancel', // 无人车取消订单

    order_count: 'thanos/order/count', // 查询快递数量
    order_export: 'thanos/order/export', // 导出快递数据
    order_info: 'thanos/order/info', // 快递详情
    order_toCab: 'thanos/order/toCab', // 重发到柜体
    order_cancelDelivery: 'thanos/order/cancelDelivery', // 取消订单投递
    order_confirmDelivery: 'thanos/order/confirmDelivery', // 投递确认
    order_repeatSms: 'thanos/order/repeatSms', // 重发短信
    order_pickup: 'thanos/order/pickup', // 运营后台确认取走
    order_editPhone: 'thanos/order/editPhone', // 修改手机号
    order_problem: 'thanos/order/problem', // 设置问题件
    order_recoverList: 'thanos/order/recover/list', // 追回件列表
    order_recover_add: 'thanos/order/recover/add', // 修改追回件
    order_recover_update: 'thanos/order/recover/update', // 修改追回件
    order_recover_del: 'thanos/order/recover', // 删除追回件
    order_history_list: 'thanos/order/history/list', // 查询历史订单
    order_history_export: 'thanos/order/history/export', // 导出历史订单
    order_sign_back: 'thanos/order/back', // 标记退回
    order_cancel_back: 'thanos/order/cancelWithdraw', // 取消退回
    order_open_cab: 'thanos/order/openCell', // 远程开箱
    order_withdraw_reason: 'thanos/order/withdrawReason', // 退回原因
    order_img: 'thanos/order/ocrImg', // 获取快递单图片

    taking_list: 'thanos/taking/list', // 盘点管理列表
    taking_count: 'thanos/taking/count', // 盘点管理数量统计
    taking_tagTaking: 'thanos/taking/tagTaking', // 标记待盘点
    taking_notifyDelaying: 'thanos/taking/notifyDelaying', // 批量催取短信
    taking_orderSign: 'thanos/taking/orderSign', // 批量标记代签收
    taking_orderBack: 'thanos/taking/orderBack', // 批量标记退回
    taking_exportExcel: 'thanos/taking/exportExcel', // 导出Excel

    batch_list: 'thanos/batch/list', // 接驳列表
    batch_open: 'thanos/batch/open', // 批次开启
    batch_close: 'thanos/batch/close', // 批次关闭
    batch_importExcel: 'thanos/batch/importExcel', // 批次关闭
    batch_common: 'thanos/batch', // 批次详情
    batch_detail: 'thanos/batch/detail', // 批次详情列表
    batch_detailCount: 'thanos/batch/detailCount', // 批次详情列表统计
    batch_checkUpdate: 'thanos/batch/checkUpdate', // 检查订单是否可以修改
    batch_updatePhone: 'thanos/batch/updatePhone', // 修改订单手机号
    batch_remove: 'thanos/batch/remove', // 批量删除订单
    batch_downloadBarcode: 'thanos/batch/downloadBarcode', // 下载运单条形码

    auth_user: 'thanos/auth/user', // 查询当前登录用户是否是超管
    ocr_logisList: 'thanos/ocr/logisList', // ocr物流中心校验信息统计
    ocr_count: 'thanos/ocr/count', // 根据物流中心id查询ocr校验信息
    ocr_uncheckOrder: 'thanos/ocr/uncheckOrder', // 查询待校验订单详情
    ocr_setInventory: 'thanos/ocr/setInventory', // ocr待校验订单设置待盘点
    ocr_confirm: 'thanos/ocr/confirm', // ocr待校验订单确认
    behalf_confirm: 'thanos/ocr/smsAgent', // ocr待校验 短信代发

    problem_list: 'thanos/problem/list', // 查询问题件列表
    problem_detail: 'thanos/problem/detail', // 查询问题件详情
    problem_record: 'thanos/problem/record', // 查询问题件操作记录
    problem_typeList: 'thanos/problem/typeList', // 查询所有问题件类型
    problem_processStatus: 'thanos/problem/processStatus', // 根据问题件类型查询可设置的状态
    problem_record_add: 'thanos/problem/record/add', // 新增问题件处理记录
    problem_typePage: 'thanos/problem/typePage', // 查询问题件类型分页
    problem_type_saveOrUpdate: 'thanos/problem/type/saveOrUpdate', // 处理问题件
    problem_type_close: 'thanos/problem/type/close', // 禁用或启用问题件类型

    problem_order_list: 'thanos/problem/order/list', // 问题订单列表
    problem_order_count: 'thanos/problem/order/count', // 问题订单列表统计
    problem_order_status: 'thanos/problem/order/status', // 获取问题订单类型
    problem_order_confirmDelivery: 'thanos/problem/order/confirmDelivery', // 确认投递
    problem_order_cancelDelivery: 'thanos/problem/order/cancelDelivery', // 取消投递

    withdraw_list: 'thanos/withdraw/list', // 退回管理列表
    withdraw_cancelWithdraw: 'thanos/withdraw/cancelWithdraw', // 取消退回
    withdraw_info: 'thanos/withdraw/info', // 退回详情
    withdraw_printDetail: 'thanos/withdraw/printDetail', // 打印交接单数据查询

    payOrder_list: 'thanos/payOrder/list', // 查询到付件
    payOrder_count: 'thanos/payOrder/count', // 统计到付件
    payOrder_export: 'thanos/payOrder/export', // 导出到付件

    cloudBox_list: 'thanos/cloudBox/list', // 云盒列表
    cloudBox: 'thanos/cloudBox', // 新增、删除云盒

    log_list: 'thanos/pushLog/list', // 日志列表
    log_push: 'thanos/pushLog/rePushOrder', // 日志补充推送
    log_detail: 'thanos/pushLog/detail', // 日志详情
};

const logisCenter: any = Object.keys(logisCenterApi)
    .reduce((origin, item) => {
        origin[item] = `${base_url}/${logisCenterApi[item]}`;
        return origin;
    }, {})

export default logisCenter;
